

# CC ?=gcc

TGT :=dong.out
SRCS :=dong.c
TARGET := libdong.so



# else
# 	obj-m := hello_world.o
# endif


all: $(TARGET)
$(TARGET):dong.c
	$(CC) $(CFLAGS) $(LDFLAGS) -Wall -shared -fPIC -Os -g -o $@ $<


$(TGT): $(SRCS)
	@echo "dong done!"
	$(CC) $^ -o $@

clean:
	rm -rf $(TGT)
	@echo "Clean up completed!";
	
